package com.bootdo.clouddo.config;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author Binary Wang
 */
@Component
public class WxMpConfig {

	@Value("${wx.kypro.token}")
	public String token;

	@Value("${wx.kypro.appid}")
	public String appid;

	@Value("${wx.kypro.secret}")
	public String appSecret;

	@Value("${wx.kypro.aesKey}")
	public String aesKey;

	/**
	 * 微信支付商户号
	 */
	@Value("${wx.kypro.mchId}")
	private String mchId;

	/**
	 * 微信支付商户密钥
	 */
	@Value("${wx.kypro.mchKey}")
	private String mchKey;

	/**
	 * 回调URL
	 */
	@Value("${wx.kypro.notifyUrl}")
	private String notifyUrl;

	/**
	 * apiclient_cert.p12文件的绝对路径，或者如果放在项目中，请以classpath:开头指定
	 */
	@Value("${wx.kypro.keyPath}")
	private String keyPath;

	public String getToken() {
		return this.token;
	}

	public String getAppid() {
		return this.appid;
	}

	public String getAppSecret() {
		return this.appSecret;
	}

	public String getAesKey() {
		return this.aesKey;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}

	public void setAesKey(String aesKey) {
		this.aesKey = aesKey;
	}

	public String getMchId() {
		return mchId;
	}

	public void setMchId(String mchId) {
		this.mchId = mchId;
	}

	public String getMchKey() {
		return mchKey;
	}

	public void setMchKey(String mchKey) {
		this.mchKey = mchKey;
	}

	public String getKeyPath() {
		return keyPath;
	}

	public void setKeyPath(String keyPath) {
		this.keyPath = keyPath;
	}

	public String getNotifyUrl() {
		return notifyUrl;
	}

	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}
}
